<template>
  <div>
    <el-menu
      default-active="1"
      class="el-menu-vertical-demo"
      background-color="#FFFFFF"
      text-color="#333333"
      active-text-color="#2087D0"
      @open="handleOpen"
      @close="handleClose"
    >
      <el-menu-item index="1">
        <i class="el-icon-menu" />
        <router-link :to="{ path: '/dashboard' }">网点财务</router-link>
      </el-menu-item>
      <el-menu-item index="2">
        <i class="el-icon-document" />
        <router-link :to="{ path: '/HqFinancePanel' }">总部财务</router-link>
        <!-- <span slot="title">导航二</span> -->
      </el-menu-item>
      <el-menu-item index="3">
        <i class="el-icon-setting" />
        <router-link :to="{ path: '/QualityControlCenter' }"
          >质控中心</router-link
        >
      </el-menu-item>
      <el-menu-item index="4">
        <i class="el-icon-setting" />
        <router-link :to="{ path: '/Customer' }">客服中心</router-link>
      </el-menu-item>
      <el-menu-item index="5">
        <i class="el-icon-setting" />
        <router-link :to="{ path: '/StatisticalCenter' }">统计中心</router-link>
      </el-menu-item>
    </el-menu>
  </div>
</template>
<script>
import router from "@/router";

export default {
  components: { router },
  methods: {
    handleOpen(key, keyPath) {
      console.log(key, keyPath);
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath);
    },
    Headquarters() {
      this.$router.push({
        path: "/HqFinancePanel",
      });
    },
  },
};
</script>
